﻿@model NavigationRelationCreateOrUpdateViewModel
@{
    ViewData["Title"] = "八宝饭数据修改器";
}
<div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>修改栏目和导航关系</legend>
        </fieldset>
        <form class="layui-form" action="/NavigationRelation/Update" method="post">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">Id</label>
                    <div class="layui-input-inline">
                        <input type="text" asp-for="Id" lay-verify="required" autocomplete="off" class="layui-input" readonly="readonly">
                        <span asp-validation-for="Id" class="text-danger"></span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">选择栏目</label>
                    <div class="layui-input-inline">
                        @Html.DropDownList("ClassId", Model.AvaliableClasses)
                        <span asp-validation-for="ClassId" class="text-danger"></span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">选择导航</label>
                <div class="layui-input-inline">
                    @Html.DropDownList("NavigationInfoId", Model.AvaliableNavigationInfos)
                    <span asp-validation-for="NavigationInfoId" class="text-danger"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">优先级</label>
                <div class="layui-input-inline">
                    <input asp-for="Priority" lay-verify="required" autocomplete="off" class="layui-input">
                    <span asp-validation-for="Priority" class="text-danger"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" type="submit">立即提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    layui.use('form', function () {
        var form = layui.form();
    });
</script>